#!/bin/sh

echo 'import data from hdfs。。。'
currDate=`date +%Y%m%d`
echo "the current time is '$currDate'"
hive -e "USE test;LOAD DATA INPATH '/user_clicks/$currDate/*' OVERWRITE INTO TABLE user_clicks PARTITION (dt='$currDate');"
